import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
import { APIBase } from 'app/modules/base/api-base';

@Injectable({
  providedIn: 'root'
})
export class ArchitectureService implements Resolve<any>{

  constructor(private http: HttpClient) {}

	resolve(route: ActivatedRouteSnapshot) {
		return this.http.get("/api/architecture/all?varify=true").toPromise();
	}
}
